Skip to content

fix: skip global search window in taskbar under Treeland - #6

Closed
Ivy233 wants to merge 1 commit into
masterfrom
agent/bot/c719270e1496
Closed

Ivy233 wants to merge 1 commit into
masterfrom
agent/bot/c719270e1496

Conversation

@Ivy233

@Ivy233 Ivy233 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

修复说明

修复 Treeland 环境下唤起全局搜索后任务栏展示未知图标的问题。

问题

在 Treeland(Wayland)环境下,全局搜索窗口作为原生 Wayland xdg_toplevel 窗口创建,dde-shell 的 TreeLandWindow::shouldSkip() 无条件返回 false,导致该窗口在任务栏显示为未知图标。

方案

在 dde-shell 侧增加基于 app_id 的 DConfig 配置过滤逻辑。

变更内容

  • TreeLandWindow::shouldSkip(): 从无条件返回 false 改为基于 app_id 匹配 DConfig 配置的跳过列表,添加 null 守卫
  • setForeignToplevelHandle(): 新增 appidChanged → shouldSkipChanged 信号连接
  • TaskManagerSettings: 新增 taskbarSkipAppIds() 方法
  • globals.h: 新增 TASKMANAGER_TASKBAR_SKIP_APPIDS 常量
  • DConfig: 新增 taskbarSkipAppIds 配置项

关联 Issue

DDE-586

PMS Bug

https://pms.uniontech.com/bug-view-291509.html

In Treeland (Wayland) environment, the global search window is created as
a native xdg_toplevel without skip_flags set, causing it to appear as an
unknown icon in the taskbar. This patch adds app_id-based filtering in
TreeLandWindow::shouldSkip() using a DConfig-managed skip list.

Changes:
- TreeLandWindow::shouldSkip(): add null guard for m_foreignToplevelHandle,
  check app_id against DConfig skip list instead of unconditionally
  returning false
- Connect appidChanged -> shouldSkipChanged to handle async app_id arrival
- Add taskbarSkipAppIds() to TaskManagerSettings
- Add TASKMANAGER_TASKBAR_SKIP_APPIDS constant to globals.h
- Add taskbarSkipAppIds DConfig item with default app IDs for global search

Issue: https://agent-dev.uniontech.com/dde/issues/01a1bf0f-bf59-7526-910f-5d86adccd830
@Ivy233 Ivy233 closed this Nov 16, 2026
@Ivy233
Ivy233 deleted the agent/bot/c719270e1496 branch November 19, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant